package foodmaterial.entity;

import foodmaterial.action.valid.ObjectNullValid;

import javax.validation.constraints.Min;
import java.io.Serializable;
import java.math.BigDecimal;

public class RecipeTemplateDetails implements Serializable {
    private static final long serialVersionUID = -90735010024465897L;
    private Long id ;
    private Long templateId ;
    @ObjectNullValid(message = "食材不能为空")
    private Long foodMaterialId ;
    private String foodMaterialName ;
    private String specs ;
    private String brand ;
    private String unitName ;
    private Double energy ;
    private Double protein;
    private Double fat ;
    private Double carbohydrate ;
    private Integer expressionUnit ;
    private Boolean originalProcess ;
    @Min(value = 1,message = "食材量最小是1")
    private Integer amount ;
    private BigDecimal salePrice ;
    private BigDecimal buyPrice ;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Long templateId) {
        this.templateId = templateId;
    }

    public Long getFoodMaterialId() {
        return foodMaterialId;
    }

    public void setFoodMaterialId(Long foodMaterialId) {
        this.foodMaterialId = foodMaterialId;
    }

    public String getFoodMaterialName() {
        return foodMaterialName;
    }

    public void setFoodMaterialName(String foodMaterialName) {
        this.foodMaterialName = foodMaterialName;
    }

    public String getSpecs() {
        return specs;
    }

    public void setSpecs(String specs) {
        this.specs = specs;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public Double getEnergy() {
        return energy;
    }

    public void setEnergy(Double energy) {
        this.energy = energy;
    }

    public Double getProtein() {
        return protein;
    }

    public void setProtein(Double protein) {
        this.protein = protein;
    }

    public Double getFat() {
        return fat;
    }

    public void setFat(Double fat) {
        this.fat = fat;
    }

    public Double getCarbohydrate() {
        return carbohydrate;
    }

    public void setCarbohydrate(Double carbohydrate) {
        this.carbohydrate = carbohydrate;
    }

    public Integer getExpressionUnit() {
        return expressionUnit;
    }

    public void setExpressionUnit(Integer expressionUnit) {
        this.expressionUnit = expressionUnit;
    }

    public Boolean getOriginalProcess() {
        return originalProcess;
    }

    public void setOriginalProcess(Boolean originalProcess) {
        this.originalProcess = originalProcess;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public BigDecimal getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(BigDecimal salePrice) {
        this.salePrice = salePrice;
    }

    public BigDecimal getBuyPrice() {
        return buyPrice;
    }

    public void setBuyPrice(BigDecimal buyPrice) {
        this.buyPrice = buyPrice;
    }
}
